﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Admin.Page_Template
{
    public partial class Edit : Evan.WebUI.ManagerPage
    {
        protected string TempPageTitle = "";
        protected string TemplateCategory = "Template";

        protected int Id = 0;
        protected string TableName = "Template";
        protected dynamic Model = new Evan.Model.DynamicModel();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TemplateCategory = Evan.Common.CommFun.GetQueryString("t");
                if (TemplateCategory.ToLower() == "Template".ToLower())
                {
                    TempPageTitle = "模板";
                }
                if (TemplateCategory.ToLower() == "Component".ToLower())
                {
                    TempPageTitle = "组件";
                }

                int.TryParse(Evan.Common.CommFun.GetQueryString("id"), out Id);

                Evan.DataBase.DbOperat BLL_Template = new Evan.DataBase.DbOperat("Template");
                Model = BLL_Template.GetModel_1(string.Format("Id={0}", Id));

            }
        }

    }
}